/* 工单表单样式 */

/* 问题类型分组样式 */
.problem-type-group {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
}

.problem-group-title {
  background-color: #f8f9fa;
  padding: 12px 16px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #e0e0e0;
}

/* 可折叠标题样式 */
.problem-group-title.collapsible {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.problem-group-title.collapsible:hover {
  background-color: #e9ecef;
}

.problem-group-title.collapsed {
  border-bottom: none;
}

/* 折叠图标样式 */
.collapse-icon {
  font-size: 12px;
  margin-right: 8px;
  transition: transform 0.2s ease;
  display: inline-block;
  width: 16px;
  text-align: center;
}

.problem-group-title.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

/* 特定问题类型样式 */
.specific-problems .problem-group-title {
  background-color: #e3f2fd;
  color: #1565c0;
}

/* 通用问题类型样式 */
.general-problems .problem-group-title {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.problem-checkboxes {
  padding: 12px;
}

.problem-type-item {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  background-color: #fff;
  transition: all 0.2s ease;
}

.problem-type-item:hover {
  background-color: #f8f9fa;
  border-color: #007bff;
  box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.problem-type-item:last-child {
  margin-bottom: 0;
}

.problem-type-label {
  display: block;
  cursor: pointer;
  margin: 0;
  width: 100%;
}

.problem-type-checkbox {
  margin-right: 8px;
  margin-top: 2px;
  float: left;
}

.problem-type-title {
  font-weight: 500;
  color: #212529;
  margin-bottom: 8px;
  display: block;
  margin-left: 24px;
}

.problem-type-details {
  margin-left: 24px;
  font-size: 12px;
  color: #6c757d;
  line-height: 1.4;
}

.sop-description {
  margin-bottom: 4px;
  padding: 4px 8px;
  background-color: #f8f9fa;
  border-left: 3px solid #007bff;
  border-radius: 2px;
}

.standard-handling {
  font-style: italic;
  padding: 4px 8px;
  background-color: #fff3cd;
  border-left: 3px solid #ffc107;
  border-radius: 2px;
}

/* 费用类型标签样式 */
.fee-type-tags {
  margin: 15px 0;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.fee-type-tags h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #495057;
}

.fee-type-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fee-type-tag {
  display: inline-block;
  padding: 4px 8px;
  background-color: #007bff;
  color: white;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

/* 未匹配费用类型警告样式 */
.unmatched-fee-types-warning {
  margin-top: 10px;
  padding: 10px;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  color: #856404;
}

.unmatched-fee-types-warning p {
  margin: 0 0 8px 0;
}

.unmatched-fee-types-warning ul {
  margin: 8px 0;
  padding-left: 20px;
}

.unmatched-fee-types-warning .button {
  display: inline-block;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  font-size: 12px;
}

.unmatched-fee-types-warning .button:hover {
  background-color: #0056b3;
}

/* 验证错误样式 */
.validation-error {
  margin: 15px 0;
  padding: 10px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
}

.validation-error ul {
  margin: 0;
  padding-left: 20px;
}

.validation-error li {
  margin-bottom: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .problem-type-item {
    padding: 8px;
  }
  
  .problem-group-title {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .problem-checkboxes {
    padding: 8px;
  }
  
  .problem-type-details {
    font-size: 11px;
  }
}

/* 打印样式 */
@media print {
  .problem-type-group {
    break-inside: avoid;
    border: 1px solid #000;
  }
  
  .problem-group-title {
    background-color: #f0f0f0 !important;
    color: #000 !important;
  }
  
  .problem-type-item {
    border: 1px solid #ccc;
  }
}